package com.cl.entity;

import java.io.Serializable;

import javax.persistence.*;

import com.cl.entity.common.DBObject;
import com.cl.util.ClassNameReplaceUtil;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the CC_PAY database table.
 * 
 */
@Entity
@Table(name="CC_PAY")
public class CcPay implements Serializable, DBObject {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="CC_PAY_ID_GENERATOR", sequenceName="CC_PAY_SEQ", allocationSize=1, initialValue=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CC_PAY_ID_GENERATOR")
	private Long id;

	@Column(name="AUTHOR_ID")
	private String authorId;

	@Column(name="AUTHOR_TITLE")
	private String authorTitle;

	@Column(name="CLASS")
	private String class_;

	@Temporal(TemporalType.DATE)
	private Date created;

	@Column(name="DOC_NUMBER")
	private BigDecimal docNumber;

	private Long keyval;

	private String notes;

	@Column(name="PAY_FACTOR_NOTES")
	private String payFactorNotes;

	@Column(name="RE_EDITOR_C_FLAG")
	private String reEditorCFlag;

	@Column(name="RE_EDITOR_C_MAN")
	private String reEditorCMan;

	@Temporal(TemporalType.DATE)
	@Column(name="RE_EDITOR_C_TIME")
	private Date reEditorCTime;

	@Column(name="RE_GIVE_FLAG")
	private String reGiveFlag;

	@Column(name="RE_GIVE_MAN")
	private String reGiveMan;

	@Temporal(TemporalType.DATE)
	@Column(name="RE_GIVE_TIME")
	private Date reGiveTime;

	private BigDecimal reward;

	@Column(name="REWARD_C_MAN")
	private String rewardCMan;

	@Temporal(TemporalType.DATE)
	@Column(name="REWARD_C_TIME")
	private Date rewardCTime;

	@Column(name="REWARD_FLAG")
	private String rewardFlag;

	@Column(name="REWARD_LEVEL")
	private BigDecimal rewardLevel;

	private String subtype;

	private String title;

	private String workitem;
	
	//4.25 接口参数
	@Column(name="ZFPD_ID")
	private String zfpd_id;
	


	public CcPay() {
		this.reEditorCFlag="N";
		this.rewardFlag="N";
		this.reGiveFlag="N";
	}
	
	public CcPay(String class_, Long keyval, Date created, String workitem){
		this(); 
		this.class_ = class_;
		this.keyval = keyval;
		this.created = created;
		this.workitem = workitem;
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getAuthorId() {
		return this.authorId;
	}

	public void setAuthorId(String authorId) {
		this.authorId = authorId;
	}

	public String getAuthorTitle() {
		return this.authorTitle;
	}

	public void setAuthorTitle(String authorTitle) {
		this.authorTitle = authorTitle;
	}

	public String getClass_() {
//jj 11.10		
//		this.class_ = ClassNameReplaceUtil.replaceName(class_);
		return this.class_;
	}

	public void setClass_(String class_) {
		this.class_ = class_;
	}

	public Date getCreated() {
		return this.created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public BigDecimal getDocNumber() {
		return this.docNumber;
	}

	public void setDocNumber(BigDecimal docNumber) {
		this.docNumber = docNumber;
	}

	public Long getKeyval() {
		return this.keyval;
	}

	public void setKeyval(Long keyval) {
		this.keyval = keyval;
	}

	public String getNotes() {
		return this.notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public String getPayFactorNotes() {
		return this.payFactorNotes;
	}

	public void setPayFactorNotes(String payFactorNotes) {
		this.payFactorNotes = payFactorNotes;
	}

//	public String getReEditorCFlag() {
//		return this.reEditorCFlag;
//	}
//
//	public void setReEditorCFlag(String reEditorCFlag) {
//		this.reEditorCFlag = reEditorCFlag;
//	}

	public boolean getReEditorCFlag() {
		return "Y".equals(this.reEditorCFlag)?true:false;
	}

	public void setReEditorCFlag(boolean reEditorCFlag) {
		this.reEditorCFlag = reEditorCFlag==true?"Y":"N";
	}

	public String getReEditorCMan() {
		return this.reEditorCMan;
	}

	public void setReEditorCMan(String reEditorCMan) {
		this.reEditorCMan = reEditorCMan;
	}

	public Date getReEditorCTime() {
		return this.reEditorCTime;
	}

	public void setReEditorCTime(Date reEditorCTime) {
		this.reEditorCTime = reEditorCTime;
	}

	public String getReGiveFlag() {
		return this.reGiveFlag;
	}

	public void setReGiveFlag(String reGiveFlag) {
		this.reGiveFlag = reGiveFlag;
	}

	public String getReGiveMan() {
		return this.reGiveMan;
	}

	public void setReGiveMan(String reGiveMan) {
		this.reGiveMan = reGiveMan;
	}

	public Date getReGiveTime() {
		return this.reGiveTime;
	}

	public void setReGiveTime(Date reGiveTime) {
		this.reGiveTime = reGiveTime;
	}

	public BigDecimal getReward() {
		return this.reward;
	}

	public void setReward(BigDecimal reward) {
		this.reward = reward;
	}

	public String getRewardCMan() {
		return this.rewardCMan;
	}

	public void setRewardCMan(String rewardCMan) {
		this.rewardCMan = rewardCMan;
	}

	public Date getRewardCTime() {
		return this.rewardCTime;
	}

	public void setRewardCTime(Date rewardCTime) {
		this.rewardCTime = rewardCTime;
	}

//	public String getRewardFlag() {
//		return this.rewardFlag;
//	}

	public boolean getRewardFlag() {
		return "Y".equals(this.rewardFlag)?true:false;
	}

//	public void setRewardFlag(String rewardFlag) {
//		this.rewardFlag = rewardFlag;
//	}

	public void setRewardFlag(boolean rewardFlag) {
		this.rewardFlag = rewardFlag==true?"Y":"N";
	}

	public BigDecimal getRewardLevel() {
		return this.rewardLevel;
	}

	public void setRewardLevel(BigDecimal rewardLevel) {
		this.rewardLevel = rewardLevel;
	}

	public String getSubtype() {
//		this.subtype = ClassNameReplaceUtil.replaceName(class_);
		return this.subtype;
	}

	public void setSubtype(String subtype) {
		this.subtype = subtype;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getWorkitem() {
		return this.workitem;
	}

	public void setWorkitem(String workitem) {
		this.workitem = workitem;
	}
	
	//4.25 接口参数
	public String getZfpd_id() {
		return this.zfpd_id;
	}

	public void setZfpd_id(String zfpd_id) {
		this.zfpd_id = zfpd_id;
	}


	@Override
	public Object getPrimaryId() {
		// TODO Auto-generated method stub
		return this.id;
	}

	@Override
	public void setDcCreate(Date dcCreate) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Date getDcCreate() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setLastUpdate(Date lastUpdate) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Date getLastUpdate() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setDcEditor0(String dcEditor0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public String getDcEditor0() {
		// TODO Auto-generated method stub
		return null;
	}

}